package com.huimark.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.huimark.service.SimpleService;

@Controller
public class WsController {
	@Autowired
	SimpleService ss;

	@ResponseBody
	@RequestMapping("/add")
	public String add() {
		ss.count++;
		return "currentVal=" + ss.count;
	}
}
